package com.zk.nacosprovider.Entity;

import java.util.ArrayList;
import java.util.List;

public class commodityExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public commodityExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andCommodityidIsNull() {
            addCriterion("commodityId is null");
            return (Criteria) this;
        }

        public Criteria andCommodityidIsNotNull() {
            addCriterion("commodityId is not null");
            return (Criteria) this;
        }

        public Criteria andCommodityidEqualTo(String value) {
            addCriterion("commodityId =", value, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidNotEqualTo(String value) {
            addCriterion("commodityId <>", value, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidGreaterThan(String value) {
            addCriterion("commodityId >", value, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidGreaterThanOrEqualTo(String value) {
            addCriterion("commodityId >=", value, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidLessThan(String value) {
            addCriterion("commodityId <", value, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidLessThanOrEqualTo(String value) {
            addCriterion("commodityId <=", value, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidLike(String value) {
            addCriterion("commodityId like", value, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidNotLike(String value) {
            addCriterion("commodityId not like", value, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidIn(List<String> values) {
            addCriterion("commodityId in", values, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidNotIn(List<String> values) {
            addCriterion("commodityId not in", values, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidBetween(String value1, String value2) {
            addCriterion("commodityId between", value1, value2, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommodityidNotBetween(String value1, String value2) {
            addCriterion("commodityId not between", value1, value2, "commodityid");
            return (Criteria) this;
        }

        public Criteria andCommoditynameIsNull() {
            addCriterion("commodityName is null");
            return (Criteria) this;
        }

        public Criteria andCommoditynameIsNotNull() {
            addCriterion("commodityName is not null");
            return (Criteria) this;
        }

        public Criteria andCommoditynameEqualTo(String value) {
            addCriterion("commodityName =", value, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameNotEqualTo(String value) {
            addCriterion("commodityName <>", value, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameGreaterThan(String value) {
            addCriterion("commodityName >", value, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameGreaterThanOrEqualTo(String value) {
            addCriterion("commodityName >=", value, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameLessThan(String value) {
            addCriterion("commodityName <", value, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameLessThanOrEqualTo(String value) {
            addCriterion("commodityName <=", value, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameLike(String value) {
            addCriterion("commodityName like", value, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameNotLike(String value) {
            addCriterion("commodityName not like", value, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameIn(List<String> values) {
            addCriterion("commodityName in", values, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameNotIn(List<String> values) {
            addCriterion("commodityName not in", values, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameBetween(String value1, String value2) {
            addCriterion("commodityName between", value1, value2, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditynameNotBetween(String value1, String value2) {
            addCriterion("commodityName not between", value1, value2, "commodityname");
            return (Criteria) this;
        }

        public Criteria andCommoditystateIsNull() {
            addCriterion("commodityState is null");
            return (Criteria) this;
        }

        public Criteria andCommoditystateIsNotNull() {
            addCriterion("commodityState is not null");
            return (Criteria) this;
        }

        public Criteria andCommoditystateEqualTo(Integer value) {
            addCriterion("commodityState =", value, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateNotEqualTo(Integer value) {
            addCriterion("commodityState <>", value, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateGreaterThan(Integer value) {
            addCriterion("commodityState >", value, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateGreaterThanOrEqualTo(Integer value) {
            addCriterion("commodityState >=", value, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateLessThan(Integer value) {
            addCriterion("commodityState <", value, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateLessThanOrEqualTo(Integer value) {
            addCriterion("commodityState <=", value, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateIn(List<Integer> values) {
            addCriterion("commodityState in", values, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateNotIn(List<Integer> values) {
            addCriterion("commodityState not in", values, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateBetween(Integer value1, Integer value2) {
            addCriterion("commodityState between", value1, value2, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditystateNotBetween(Integer value1, Integer value2) {
            addCriterion("commodityState not between", value1, value2, "commoditystate");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceIsNull() {
            addCriterion("commodityPrice is null");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceIsNotNull() {
            addCriterion("commodityPrice is not null");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceEqualTo(Integer value) {
            addCriterion("commodityPrice =", value, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceNotEqualTo(Integer value) {
            addCriterion("commodityPrice <>", value, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceGreaterThan(Integer value) {
            addCriterion("commodityPrice >", value, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceGreaterThanOrEqualTo(Integer value) {
            addCriterion("commodityPrice >=", value, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceLessThan(Integer value) {
            addCriterion("commodityPrice <", value, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceLessThanOrEqualTo(Integer value) {
            addCriterion("commodityPrice <=", value, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceIn(List<Integer> values) {
            addCriterion("commodityPrice in", values, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceNotIn(List<Integer> values) {
            addCriterion("commodityPrice not in", values, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceBetween(Integer value1, Integer value2) {
            addCriterion("commodityPrice between", value1, value2, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommoditypriceNotBetween(Integer value1, Integer value2) {
            addCriterion("commodityPrice not between", value1, value2, "commodityprice");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressIsNull() {
            addCriterion("commidityPhotoAddress is null");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressIsNotNull() {
            addCriterion("commidityPhotoAddress is not null");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressEqualTo(String value) {
            addCriterion("commidityPhotoAddress =", value, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressNotEqualTo(String value) {
            addCriterion("commidityPhotoAddress <>", value, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressGreaterThan(String value) {
            addCriterion("commidityPhotoAddress >", value, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressGreaterThanOrEqualTo(String value) {
            addCriterion("commidityPhotoAddress >=", value, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressLessThan(String value) {
            addCriterion("commidityPhotoAddress <", value, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressLessThanOrEqualTo(String value) {
            addCriterion("commidityPhotoAddress <=", value, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressLike(String value) {
            addCriterion("commidityPhotoAddress like", value, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressNotLike(String value) {
            addCriterion("commidityPhotoAddress not like", value, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressIn(List<String> values) {
            addCriterion("commidityPhotoAddress in", values, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressNotIn(List<String> values) {
            addCriterion("commidityPhotoAddress not in", values, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressBetween(String value1, String value2) {
            addCriterion("commidityPhotoAddress between", value1, value2, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommidityphotoaddressNotBetween(String value1, String value2) {
            addCriterion("commidityPhotoAddress not between", value1, value2, "commidityphotoaddress");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionIsNull() {
            addCriterion("commidityBriefIntroduction is null");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionIsNotNull() {
            addCriterion("commidityBriefIntroduction is not null");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionEqualTo(String value) {
            addCriterion("commidityBriefIntroduction =", value, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionNotEqualTo(String value) {
            addCriterion("commidityBriefIntroduction <>", value, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionGreaterThan(String value) {
            addCriterion("commidityBriefIntroduction >", value, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionGreaterThanOrEqualTo(String value) {
            addCriterion("commidityBriefIntroduction >=", value, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionLessThan(String value) {
            addCriterion("commidityBriefIntroduction <", value, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionLessThanOrEqualTo(String value) {
            addCriterion("commidityBriefIntroduction <=", value, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionLike(String value) {
            addCriterion("commidityBriefIntroduction like", value, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionNotLike(String value) {
            addCriterion("commidityBriefIntroduction not like", value, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionIn(List<String> values) {
            addCriterion("commidityBriefIntroduction in", values, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionNotIn(List<String> values) {
            addCriterion("commidityBriefIntroduction not in", values, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionBetween(String value1, String value2) {
            addCriterion("commidityBriefIntroduction between", value1, value2, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditybriefintroductionNotBetween(String value1, String value2) {
            addCriterion("commidityBriefIntroduction not between", value1, value2, "commiditybriefintroduction");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentIsNull() {
            addCriterion("commidityComment is null");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentIsNotNull() {
            addCriterion("commidityComment is not null");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentEqualTo(String value) {
            addCriterion("commidityComment =", value, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentNotEqualTo(String value) {
            addCriterion("commidityComment <>", value, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentGreaterThan(String value) {
            addCriterion("commidityComment >", value, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentGreaterThanOrEqualTo(String value) {
            addCriterion("commidityComment >=", value, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentLessThan(String value) {
            addCriterion("commidityComment <", value, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentLessThanOrEqualTo(String value) {
            addCriterion("commidityComment <=", value, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentLike(String value) {
            addCriterion("commidityComment like", value, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentNotLike(String value) {
            addCriterion("commidityComment not like", value, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentIn(List<String> values) {
            addCriterion("commidityComment in", values, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentNotIn(List<String> values) {
            addCriterion("commidityComment not in", values, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentBetween(String value1, String value2) {
            addCriterion("commidityComment between", value1, value2, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommentNotBetween(String value1, String value2) {
            addCriterion("commidityComment not between", value1, value2, "commiditycomment");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineIsNull() {
            addCriterion("commidityCommentToExamine is null");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineIsNotNull() {
            addCriterion("commidityCommentToExamine is not null");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineEqualTo(Integer value) {
            addCriterion("commidityCommentToExamine =", value, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineNotEqualTo(Integer value) {
            addCriterion("commidityCommentToExamine <>", value, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineGreaterThan(Integer value) {
            addCriterion("commidityCommentToExamine >", value, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineGreaterThanOrEqualTo(Integer value) {
            addCriterion("commidityCommentToExamine >=", value, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineLessThan(Integer value) {
            addCriterion("commidityCommentToExamine <", value, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineLessThanOrEqualTo(Integer value) {
            addCriterion("commidityCommentToExamine <=", value, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineIn(List<Integer> values) {
            addCriterion("commidityCommentToExamine in", values, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineNotIn(List<Integer> values) {
            addCriterion("commidityCommentToExamine not in", values, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineBetween(Integer value1, Integer value2) {
            addCriterion("commidityCommentToExamine between", value1, value2, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andCommiditycommenttoexamineNotBetween(Integer value1, Integer value2) {
            addCriterion("commidityCommentToExamine not between", value1, value2, "commiditycommenttoexamine");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionIsNull() {
            addCriterion("falseDeletion is null");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionIsNotNull() {
            addCriterion("falseDeletion is not null");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionEqualTo(Integer value) {
            addCriterion("falseDeletion =", value, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionNotEqualTo(Integer value) {
            addCriterion("falseDeletion <>", value, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionGreaterThan(Integer value) {
            addCriterion("falseDeletion >", value, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionGreaterThanOrEqualTo(Integer value) {
            addCriterion("falseDeletion >=", value, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionLessThan(Integer value) {
            addCriterion("falseDeletion <", value, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionLessThanOrEqualTo(Integer value) {
            addCriterion("falseDeletion <=", value, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionIn(List<Integer> values) {
            addCriterion("falseDeletion in", values, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionNotIn(List<Integer> values) {
            addCriterion("falseDeletion not in", values, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionBetween(Integer value1, Integer value2) {
            addCriterion("falseDeletion between", value1, value2, "falsedeletion");
            return (Criteria) this;
        }

        public Criteria andFalsedeletionNotBetween(Integer value1, Integer value2) {
            addCriterion("falseDeletion not between", value1, value2, "falsedeletion");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}